//
//  myWindowSubClass.m
//  viewTest
//
//  Created by Georg Seifert on 28.11.07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "GSBottomBorderWindow.h"


@implementation GSBottomBorderWindow

- (id)initWithContentRect:(NSRect)contentRect styleMask: (NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
	BOOL useTextured = YES;
	if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)])
	{
		useTextured = NO;
		windowStyle ^= NSTexturedBackgroundWindowMask;
	}
	self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
	if(!useTextured)
    {
		[self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
	}
	return self;
	
	
	//*/
	/*
	
	self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
	
	if (self) {
		[self setContentBorderThickness:27.0 forEdge:NSMinYEdge];
		//[self setContentBorderThickness:1.0 forEdge:NSMaxYEdge];
	}
	
	return self;
	//*/
}

@end